<? $limits = array(
	0 => 20,
	1 => 25,
	2 => 30,
	3 => 40,
	4 => 50,
) ?>

<?php // print_r($pagination); exit(); ?>
	
<div id="paging_box">
	<div class="pagination">
		<div id="limit_box">
			<span>Hiển thị #</span>
				<select style="width: 57px;" size="1" class="inputbox" id="<?php echo $pagination['limit_id']?>" name="<?php echo $pagination['limit_id']?>">
				<? for($i = 0; $i < count($limits); $i++ ) {
					$selected = '';
					if($pagination['per_page'] == $limits[$i]) $selected = 'selected="selected"';
					echo '<option '.$selected.' value="'.$limits[$i].'">'.$limits[$i].'</option>';
				}?>					
			</select>
		</div>	
		<? if(!empty($pagination['links'])): ?>	
		<?=$pagination['links'];?>		
		<? endif; ?>
	</div>
</div>